package com.jml.fallback;

import com.jml.bean.Depart;
import com.jml.service.DepartService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 类的降级方法
 */
public class DepartControllerFallback  {

    public static List<Depart> listAllDeparts() {
        System.out.println("执行listAllDeparts()的服务降级处理方法");
        return null;
    }
}
